<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>User Profile</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" rev="stylesheet" type="text/css" href="<%=basePath%>css/globle.css"/>
	<link rel="stylesheet" rev="stylesheet" type="text/css" href="<%=basePath%>css/profile/profile.css"/>
	<script type="text/javascript" src="<%=basePath%>js/ajax.js"></script>
	<script type="text/javascript" src="<%=basePath%>js/myUtil.js"></script>
	<script type="text/javascript" src="<%=basePath%>js/profile/profile.js"></script>
  </head>
  
  <body>
  	<form name="baseProfile" action="profile/saveBaseProfile" method="post">
  		<input type="hidden" name="user.id" value="<s:property value='user.id'/>"/>
  		
  		<table id="pft">
  			<tr>
  				<td>邮　箱：</td>
  				<td class="inpt" colspan="3"><input type="text" name="user.email" value="<s:property value='user.email'/>" id="ieml" class="ic" onblur="checkEmail( this )"/></td>
  				<td class="dc" id="eml">&nbsp;</td>
  			</tr>
  			<tr>
  				<td>姓　名：</td>
  				<td class="inpt" colspan="3"><input type="text" name="user.name" value="<s:property value='user.name'/>" id="iname" class="ic" onblur="checkName( this )"/></td>
  				<td class="dc" id="name">&nbsp;</td>
  			</tr>
  			<tr>
  				<td>姓　别：</td>
  				<td><label>男</lable><span>：</span><input type="radio" name="user.sex" value="1" checked="checked" class="radio"></td>
  				<td>&nbsp;</td> 
  				<td><label>女</label><span>：</span><input type="radio" name="user.sex" value="0" class="radio"></td>
  				<td class="dc" id="sex">&nbsp;</td>
  			</tr>
  			<tr>
  				<td>学　号：</td>
  				<td class="inpt" colspan="3"><input type="text" name="user.number" value="<s:property value='user.number'/>" id="inumber" class="ic" onblur="checkNumber( this )"/></td>
  				<td class="dc" id="number">&nbsp;</td>
  			</tr>
  			<tr>
  				<td>手机号：</td>
  				<td class="inpt" colspan="3"><input type="text" name="user.phone" value="<s:property value='user.phone'/>" id="iphone" class="ic" onblur="checkPhone( this )"/></td>
  				<td  class="dc" id="phone">&nbsp;</td>
  			</tr>
  			<tr>
  				<td>院　系：</td><!-- 默认为井冈山大学 -->
  				<td class="inpt" colspan="3">
  					<div id="budSpecial">
  					<select name="bud.id" id="ibudID"  class="ic" onfocus="showBuds( this )" onchange="budValueChange()" onblur="checkBud( this )">
  						<option value="0" selected="selected">&nbsp;</option>
  					</select>
  					</div>
  					</div>
  				</td>
  				<td class="dc" id="budID">&nbsp;</td>
  			</tr>
  			<tr>
  				<td>年　级：</td>
  				<td class="tgc">
  					<select name="clazz.grade" id="iclzGrd" class="sgc" onchange="gradeValueChange()">
  						<option value="0" selected="selected">&nbsp;</option>
  						<option value="1">大一</option>
  						<option value="2">大二</option>
  						<option value="3">大三</option>
  						<option value="4">大四</option>
  					</select>
  				</td>
  				<td>班:</td>
  				<td class="tnc" >
  					<div id="clzSelect">
  					<select name="clazz.id" id="iclzName" class="scc" onfocus="showClazzs( this )" onblur="checkClazz( this )">
  						 <option value="0" selected="selected">&nbsp;</option>
  					</select>
  					</div>
  				</td>
  				<td class="dc" id="clzName">&nbsp;</td>
  			</tr>
  			<tr>
  				<td>&nbsp;</td>
  				<td class="inpt" colspan="3">&nbsp;</td>
  				<td>&nbsp;</td>
  			</tr>
  			<tr>
  				<td>&nbsp;</td>
  				<td class="inpt" colspan="3"><input type="button" value="完成" id="iphone" class="ic" onclick="submitProfile()"/></td>
  				<td>&nbsp;</td>
  			</tr>
  		</table>
  	</from>
  	<p id="info">
  	</p>
  </body>
</html>